package cn.mw.cmdb.template.entity;

import cn.mw.cmdb.entity.PropertyTypeInt;
import cn.mw.cmdb.entity.PropertyTypeList;
import cn.mw.cmdb.entity.PropertyTypeString;
import cn.mw.components.mongodb.anno.CMDBProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.List;

/**
 * @author gengjb
 * @description zabbix函数DTO
 * @date 2024/10/28 14:19
 */
@Getter
@Setter
@Schema(name = "FunctionDto", description = "zabbix函数DTO")
@Document("mw_trigger_function")
public class FunctionClassifyDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "函数类型")
    @CMDBProperty(searchType = PropertyTypeInt.ID ,keywordSearch = true)
    private Integer type;

    @Schema(description = "函数分类")
    @CMDBProperty(searchType = PropertyTypeString.ID ,keywordSearch = true)
    private String classify;

    @Schema(description = "分类下的函数信息")
    @CMDBProperty(searchType = PropertyTypeList.ID ,keywordSearch = true)
    private List<FunctionDetailDto> valueDetail;
}
